package com.three.work.bean.result;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;


/**
 * @author 肖守凯
 * @packge com.xsy.commen.bean.result
 * @data 2020-04-7 14:52
 * @project
 */
@TableName("appuser")
@ApiModel(value="Appuser对象", description="")
public class AppuserPost extends Model<AppuserPost> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "名字")
    @TableField("u_name")
    private String uName;

    @ApiModelProperty(value = "电话")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "小程序UserID")
    @TableField("openid")
    private String openid;

    @ApiModelProperty(value = "部门外键")
    @TableField("department_id")
    private Integer departmentId;

    @ApiModelProperty(value = "职位外键")
    @TableField("post_id")
    private Integer postId;

    @ApiModelProperty(value = "状态0未注册/1成功/2审核中")
    @TableField("state")
    private Integer state;

    @ApiModelProperty(value = "职位名字")
    @TableField("post_name")
    private String postName;


    @ApiModelProperty(value = "部门名字")
    @TableField("department_name")
    private String departmentName;

    public String getDepartmentName() {
        return departmentName;
    }

    public AppuserPost setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
        return this;
    }

    public String getPostName() {
        return postName;
    }

    public AppuserPost setPostName(String postName) {
        this.postName = postName;
        return this;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getuName() {
        return uName;
    }

    public void setuName(String uName) {
        this.uName = uName;
    }
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }
    public Integer getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(Integer departmentId) {
        this.departmentId = departmentId;
    }
    public Integer getPostId() {
        return postId;
    }

    public void setPostId(Integer postId) {
        this.postId = postId;
    }
    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Appuser{" +
            "id=" + id +
            ", uName=" + uName +
            ", phone=" + phone +
            ", openid=" + openid +
            ", departmentId=" + departmentId +
            ", postId=" + postId +
            ", state=" + state +
        "}";
    }
}
